package com.jiu345.api.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * package:GoodsCategory
 * @author MrLei QQ:235921049
 * @date 2024-05-21
 * desc:购物车
 */
@Data
@TableName("mall_carts")
public class Cart implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /* id*/
    @TableId(value = "id")
    private Long id;

    /*用户ID*/
    private Long userId;

    /*商品ID*/
    private Long goodsId;

    /*sku ID*/
    private Long skuId;

    /*商品数量*/
    private Integer count;

    /*选中状态*/
    private Boolean selected;

    /*创建时间*/
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /*更新时间*/
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;






}
